package cn.juque.systemservice.mapper;

import cn.juque.systemservice.domain.EmployeeOrgRelationDO;
import cn.juque.systemservice.entity.EmployeeOrgRelation;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author JUQUE
 * @version 1.0.0
 * <ul>
 *  <li>simple-generator</li>
 *  <li>员工机构关系</li>
 * </ul>
 * @date 2022-12-01 15:27:14
 **/
@Mapper
public interface EmployeeOrgRelationMapper extends BaseMapper<EmployeeOrgRelation> {

    /**
     * 分页查询
     *
     * @param page                : page
     * @param employeeOrgRelation : employeeOrgRelation
     * @return List<EmployeeOrgRelation>
     */
    List<EmployeeOrgRelationDO> queryOrgRelationList(Page<EmployeeOrgRelationDO> page, @Param("ew") EmployeeOrgRelationDO employeeOrgRelation);

    /**
     * 查询
     *
     * @param employeeOrgRelation : employeeOrgRelation
     * @return List<EmployeeOrgRelation>
     */
    List<EmployeeOrgRelationDO> queryOrgRelationList(@Param("ew") EmployeeOrgRelationDO employeeOrgRelation);
}
